<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>优选之星调仓管理</title>
</head>
<style>
    /*.main {
        !*text-align: center; !*让div内部文字居中*!*!
        background-color: #fff;
        border-radius: 20px;
        width: 300px;
        height: 350px;
        margin: auto;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }*/

    #Yxlist {
        margin: 15px 0px 15px 0px;
    }

</style>
<script th:src="jquery-1.8.3.min.js"></script>
<body>
<div class="main">
    <h1>调仓成功！</h1>
    <div>
        <button onclick="getYxTiaocang()">获取当前优选之星列表</button>
        <div id="Yxlist"></div>
    </div>
    <hr>
    <h1>调仓管理</h1>
    <a href="/myfund/toTiaocang">Submit another message></a>


</div>
</body>
<script>
    function getYxTiaocang() {
        $.ajax({
            url:'/myfund/getYxTiaocang',
            method:'post',
            success:function(response){
                if(response != null) {
                    $("#Yxlist").get(0).innerHTML = response
                }
            },
            error:function (data) {
            }
        });
    }
</script>
</html>